{% extends "base.html" %}

{% block title %}Volunteer Dashboard - Volunteer Platform{% endblock %}

{% block content %}
<div class="volunteer-container">
    <div class="volunteer-sidebar">
        <div class="sidebar-header">
            <h2>Volunteer Console</h2>
        </div>
        <nav class="sidebar-nav">
            <a href="{{ url_for('volunteer_dashboard') }}" class="nav-item {% if active_page == 'dashboard' %}active{% endif %}">
                <i class="fas fa-chart-line"></i>
                Dashboard
            </a>
            <a href="{{ url_for('volunteer_activities') }}" class="nav-item {% if active_page == 'activities' %}active{% endif %}">
                <i class="fas fa-calendar-alt"></i>
                Activities
            </a>
            <a href="{{ url_for('volunteer_profile') }}" class="nav-item {% if active_page == 'profile' %}active{% endif %}">
                <i class="fas fa-user"></i>
                Profile
            </a>
        </nav>
    </div>
    
    <div class="volunteer-content">
        {% block volunteer_content %}{% endblock %}
    </div>
</div>

<style>
.volunteer-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.volunteer-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 1rem;
}

.sidebar-header {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: #3498db;
    color: white;
}

.volunteer-content {
    flex: 1;
    padding: 2rem;
    background: #f5f6fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}
</style>
{% endblock %} 